/**
 * FssConfigFactoryTestdriver.java
 */
package fss.core.config;

import fss.core.FssException;

/**
 * A test driver to test the configuration file.
 * 
 * @author thinh
 *
 */
public class FssConfigFactoryTestdriver {
    /**
     * Application entry.
     * @param args not used.
     * @throws FssException on error.
     */
    public static void main(String[] args) throws FssException {
        FssConfigFactory factory = FssConfigFactory.getInstance();
        ServiceRegistryConfig registryServerConfig = factory.getRegistryServerConfig();
        for(int port : registryServerConfig.getPortList()) {
            System.out.println("RegistryServerConfig (port): " + port);
        }
        for(String host : registryServerConfig.getHostList()) {
            System.out.println("RegistryServerConfig (host): " + host);
        }
    }

}
